package com.ok.common.base

import android.app.Application
import android.content.ContextWrapper
import com.kongzue.dialogx.DialogX

/**
 * Base Application
 */
open class BaseApplication : Application() {

    override fun onCreate() {
        super.onCreate()
        instance = this
        DialogX.init(this)
    }

}

private lateinit var instance: Application

object AppContext : ContextWrapper(instance)


